package com.zh.auth.domain.dto;

import com.zh.web.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(value = "添加权限参数")
public class AddPermission2RoleDto extends BaseDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "角色编码", required = true)
    @NotNull(message = "角色编码不能为空")
    private Integer roleCode;
    @ApiModelProperty(value = "权限编码", required = true)
    @NotNull(message = "权限编码不能为空")
    private Integer permissionCode;
}
